package org.dromara.chicken.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 鸡苗采购对象 chicken_chick_in
 *
 * @author Mr Lei QQ:235921049
 * @date 2024-06-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chicken_chick_in")
public class ChickenChickIn extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 批次名称
     */
    private String hatchName;

    /**
     * 采购订单
     */
    private String attrId;

    /**
     * 供应商
     */
    private Long supplierId;
    @TableField(exist = false)
    private String supplierName;
    /* 品种 */
    private Long varietiesId;
    @TableField(exist = false)
    private String varietiesName;

    /**
     * 公鸡数量
     */
    private Long cockNum;

    /**
     * 母鸡数量
     */
    private Long henNum;
    /*母鸡存栏*/
    private Long stockHen;
    /*公鸡存栏*/
    private Long stockCock;
    /*用于判断查询时需库存大于0*/
    @TableField(exist = false)
    private Boolean includeStockFilter;
    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 总价
     */
    private BigDecimal totalMoney;

    /**
     * 采购人员
     */
    private Long workerId;

    /**
     * 采购日期
     */
    private Date birthTime;

    /**
     * 单据状态
     */
    private String auditStatus;

    /**
     * 备注
     */
    private String remark;

    /**
     * 单据状态
     */
    private String status;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核备注
     */
    private String auditRemark;

    /**
     * 审核人
     */
    private Long auditBy;


}
